package cn.hdu.liang.decorator.starbuzzWithSizes;

public class StarbuzzCoffee {
    public static void main(String[] args) {
        Beverage beverage = new Espresso();
        System.out.println(beverage.getDesc() + " $" + String.format("%.2f", beverage.cost()));

        Beverage b2 = new Espresso();
        b2 = new Mocha(b2);
        b2 = new Mocha(b2);
        b2 = new Whip(b2);
        System.out.println(beverage.getDesc() + " $" + String.format("%.2f", b2.cost()));

        Beverage b3 = new HouseBlend();
        b3 = new Soy(b3);
        b3 = new Mocha(b3);
        b3 = new Whip(b3);
        System.out.println(beverage.getDesc() + " $" + String.format("%.2f", b3.cost()));
    }
}
